{template '../header'}

<div class="col-12 navbar-expand-lg no-gutters p-0 mb-2">
    <nav class="navbar navbar-dark">
        <a class="navbar-brand" href="#">
            <img class="navbar-icon" src="/logo.png">
            {:\Sys('site_name')}
        </a>
        <a class="btn btn-outline-light mr-2" style="border-style: dashed;" href="/">系统首页</a>
    </nav>
</div>
<div class="card mt-5 mx-auto">
    <div class="card-header">
        管理后台登陆
    </div>
    <div class="card-body">
        <form method="post">
            <div class="form-group">
                <label for="username">用户名</label>
                <input type="text" class="form-control" id="username" name="username" placeholder="输入用户名">
                <small id="emailHelp" class="form-text text-muted"></small>
            </div>
            <div class="form-group">
                <label for="password">密码</label>
                <input type="password" autocomplete="new-password" class="form-control" id="password" name="password" placeholder="密码">
            </div>
            <div class="form-group">
                <label for="valicode">验证码</label>
                <div class="input-group mb-3">
                    <input type="text" autocomplete="off" class="form-control" id="valicode" name="valicode" placeholder="验证码">
                    <div class="input-group-append">
                        <img src="/admin/code/index?_v_={:millisecond()}" style="height: 38px;" onclick="reDrawValidateImage(this, '{:$this->createUrl('code')}')" />
                    </div>
                </div>
            </div>
            <button type="submit" class="form-control btn btn-primary">登录</button>
        </form>
    </div>
</div>

{template '../footer'}